
configuration MikrobiPinConfigC {
	provides {
		interface MotorControl as LeftMotorControl;
		interface MotorControl as RightMotorControl;
//		interface MotorControl as TowerMotorControl;
		
//		interface GeneralIO as PWM1ADirPin;
//		interface GeneralIO as PWM1BDirPin;
//		interface GeneralIO as PWM1CDirPin;

		interface HplAtm128Interrupt as LeftMotorInt;     // bal motor fordulatszam
		interface HplAtm128Interrupt as RightMotorInt;    // jobb motor fordulatszam

//		interface HplAtm128Interrupt as TowerDivisionInt; // torony fogaskerek
//		interface GeneralIO as TowerSidePin;              // torony jobb/bal oldal

		interface GeneralIO as PositionLedPin;   // LED minta ki/be 
		interface GeneralIO as Power1Pin;   // LED minta ki/be 
		interface GeneralIO as Power2Pin;   // LED minta ki/be 
		interface GeneralIO as Power3Pin;   // LED minta ki/be 


	}
	
}

implementation {
	components HplAtm128InterruptC as IntC;
	LeftMotorInt = IntC.Int4;
	RightMotorInt = IntC.Int5;
//	TowerDivisionInt = IntC.Int7; // Port

	components Timer1PWMC;
	LeftMotorControl  = Timer1PWMC.Motor1;
	RightMotorControl = Timer1PWMC.Motor2;
//	TowerMotorControl = Timer1PWMC.Motor3;
	
	components HplAtm128GeneralIOC as GPIO;
//	TowerSidePin = GPIO.PortE5;  //
	PositionLedPin = GPIO.PortC0;
	Power1Pin = GPIO.PortC1;
	Power2Pin = GPIO.PortC2;
	Power3Pin = GPIO.PortC3;
}
